<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="com.wisezone.studentmanger.model.UserMessage" %>
<%@ page import="java.util.List" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户信息</title>
</head>
<body>
	<h2>在线用户数:</h2>
	<%=application.getAttribute("USER_COUNT") %>

	<h2>显示在线用户信息</h2>
	<%
		List<UserMessage> userLists = (List<UserMessage>)application.getAttribute("USER_LISTS");
	   
	    for(UserMessage user:userLists){
	%>
		<p>用户访问时间：<%=user.getCreateTime() %></p>
		<p>sessionID：<%=user.getSessionId() %></p>
		<p>用户IP地址：<%=user.getIp() %></p>
		<hr>
	<%} %>
	
	<a href="exit.jsp">退出程序</a>
</body>
</html>